<!-- $Id: attribute_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>MYSHOP 管理中心 - 商品属性</title>
  <meta name="robots" content="noindex, nofollow">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <css file="__PUBLIC__/Admin/css/general.css" />
  <css file="__PUBLIC__/Admin/css/main.css" />
  <script type="text/javascript" src="__PUBLIC__/Admin/js/transport.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Admin/js/common.js"></script>

</head>
<body>

  <h1>
    <span class="action-span">
      <a href="{:U('addAttr', array('tid' =>$_GET['id']))}">添加属性</a>
    </span>
    <span class="action-span1">
      <a href="">MYSHOP 管理中心</a>
    </span>
    <span id="search_id" class="action-span1">- 商品类型属性</span>
    <div style="clear:both"></div>
  </h1>
  <script type="text/javascript" src="__PUBLIC__/Admin/js/utils.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Admin/js/listtable.js"></script>

  <form method="post" action="attribute.php?act=batch" name="listForm">
    <div class="list-div" id="listDiv">

      <table cellpadding="3" cellspacing="1">
        <tr>
          <th>
            <input onclick='listTable.selectAll(this, "checkboxes[]")' type="checkbox">编号</th>
          <th>属性名称</th>
          <th>属性类型</th>
          <th>属性值</th>
          <th>操作</th>
        </tr>
        <if condition='$attr'>
          <foreach name='attr' item='v'>
            <tr>
              <td nowrap="true" valign="top">
                <span>
                  <input value="1" name="checkboxes[]" type="checkbox">{$v.id}</span>
              </td>
              <td class="first-cell" nowrap="true" valign="top">
                <span>{$v.name}</span>
              </td>
              <td nowrap="true" valign="top">
                <if condition='$v["type"]'>
                  <span>规格</span>
                  <else/>
                  <span>属性</span>
                </if>
              </td>
              <td valign="top">
                <span>{$v.value}</span>
              </td>
              <td align="center" nowrap="true" valign="top">
                <a href="{:U('editAttr', array('id' =>
                  $v['id'],'tid' =>$_GET['id']))}" title="编辑">
                  <img src="__PUBLIC__/Admin/images/icon_edit.gif" border="0" height="16" width="16"></a>
                <a href="javascript:;" onclick="removeRow({$v.id})" title="移除">
                  <img src="__PUBLIC__/Admin/images/icon_drop.gif" border="0" height="16" width="16"></a>
              </td>
            </tr>
          </foreach>
          <else/>
          <tr>
            <td class="no-records" colspan="10">没有找到任何记录</td>
          </tr>
        </if>
      </table>

      <if condition='$attr'>
        <table cellpadding="4" cellspacing="0">
          <tr>
            <td>
              <input type="submit" id="btnSubmit" value="删除" class="button" disabled="true" />
            </td>
            <td align="right">
              <div id="turn-page">{$page}</div>
            </td>
          </tr>
        </table>
      </if>
    </div>

  </form>
  <!--   <div id="footer">
  共执行 4 个查询，用时 0.021117 秒，Gzip 已禁用，内存占用 3.633 MB
  <br />
  版权所有 &copy; 2005-2012 上海商派网络科技有限公司，并保留所有权利。
</div>
-->
</body>
</html>